import { tenantService } from '@/utils/request'

export function tenantAdd(data) {
    return tenantService({
        url: '/tenant/add',
        method: 'post',
        data
    })
}

export function tenantUpdate(data) {
    return tenantService({
        url: '/tenant/update',
        method: 'post',
        data
    })
}

export function tenantDelete(id) {
    return tenantService({
        url: '/tenant/delete/'+id,
        method: 'delete',
    })
}

// 获取租户列表
export function getTenantList(params) {
  return tenantService({
    url: '/tenant/list',
    method: 'get',
    params
  })
}

